xl: use nic global default values in network-attach
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 1 Oct 2014 10:42:07 +0000 (12:42 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 1 Oct 2014 11:11:15 +0000 (12:11 +0100)
commitb6e6ccfaa95109c26c8027e5c5b1c8e97d6ae87f
tree04ed47ce67c0cb4b0cd984384576dbed0e708c45
parent0e96ab2691e4e83e4e89f826e0d605d5991e1bfa
xl: use nic global default values in network-attach

Introduce a new static function that will be used to set the initial nic
config based on the global defaults. This fixes a bug caused by
network-attach not using the default values set in xl.conf(5).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c